package com.itmk.student_course.service.impl;

import com.itmk.student_course.dao.StudentCourseDao;
import com.itmk.student_course.dao.impl.StudentCourseDaoImpl;
import com.itmk.student_course.entity.StudentCourse;
import com.itmk.student_course.service.StudentCourseService;
import com.itmk.student_select.entity.StudentSelectParm;
import com.itmk.student_select.entity.StudentSelectVo;

import java.util.List;

public class StudentCourseServiceImpl implements StudentCourseService {
    private StudentCourseDao studentCourseDao = new StudentCourseDaoImpl();
    @Override
    public void add(StudentCourse studentCourse) {
        studentCourseDao.add(studentCourse);
    }

    @Override
    public StudentCourse hasSelectCourse(StudentCourse studentCourse) {
        return studentCourseDao.hasSelectCourse(studentCourse);
    }

    @Override
    public List<StudentSelectVo> list(StudentSelectParm parm) {
        return studentCourseDao.list(parm);
    }

    @Override
    public int getCount(StudentSelectParm parm) {
        return studentCourseDao.getCount(parm);
    }
}
